package service

import (
	"choujiang/common/models"
	"choujiang/common/db"
)

func GetTaskInfo(user *model.User) db.TaskInfo {
	reTask := db.Mgo.GetTaskInfo(user.Id)
	_, totalNum := GetGroupsNum(user.Id)
	reTask.InviteFriendsNum = int(totalNum)
	return reTask
}

func GetNewTaskInfo(user *model.User) db.NewTaskInfo {
	reTask := db.Mgo.GetNewTaskInfo(user.Id)
	return reTask
}
